#include "QtNodeDataModel.hpp"

#include "QtStyle.hpp"

namespace Qt
{
	QtNodeDataModel::
		QtNodeDataModel()
		: _nodeStyle(StyleCollection::nodeStyle())
	{
		// Derived classes can initialize specific style here
	}


	QJsonObject
		QtNodeDataModel::
		save() const
	{
		QJsonObject modelJson;

		modelJson["name"] = name();

		return modelJson;
	}


	NodeStyle const&
		QtNodeDataModel::
		nodeStyle() const
	{
		return _nodeStyle;
	}


	void
		QtNodeDataModel::
		setNodeStyle(NodeStyle const& style)
	{
		_nodeStyle = style;
	}
}